/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.DefaultListModel;
import view.MainFrame;
import model.ListTaskGroup;
import model.Alarm;
import model.Data;
import view.*;
/**
 *
 * @author Luci
 */
public class Controller {
    private MainFrame main;
    private ListTaskGroup list;
    private Alarm alarm;
    Data data = new Data();
    public Controller(){
       main = new MainFrame();
       list = data.readData();
       for(int i = 0; i<list.getSize(); i++)
            ((DefaultListModel)main.group.getModel()).addElement(list.getAt(i));
       System.out.println(list.getSize());
    }
    
    public static void main(String[] args) {
        Controller a = new Controller();
    }
    
    class GroupSelectionListener implements ActionListener{
        @Override
        public void actionPerformed(ActionEvent e) {
            
            
        }
        
    }
}
